import Vue from 'vue'

// 按需导入yd-ui组件
import { InfiniteScroll } from 'vue-ydui/dist/lib.rem/infinitescroll'
import { ListTheme, ListItem, ListOther } from 'vue-ydui/dist/lib.rem/list'
import { Tab, TabPanel } from 'vue-ydui/dist/lib.rem/tab'
import { NavBar, NavBarBackIcon, NavBarNextIcon } from 'vue-ydui/dist/lib.rem/navbar'
import { Search } from 'vue-ydui/dist/lib.rem/search'
import { CheckBox, CheckBoxGroup } from 'vue-ydui/dist/lib.rem/checkbox'
import { Switch } from 'vue-ydui/dist/lib.rem/switch'
import { Spinner } from 'vue-ydui/dist/lib.rem/spinner'
import { CitySelect } from 'vue-ydui/dist/lib.rem/cityselect'
// import { Confirm, Alert, Toast, Notify, Loading } from 'vue-ydui/dist/lib.rem/dialog'
import { RollNotice, RollNoticeItem } from 'vue-ydui/dist/lib.rem/rollnotice'
import { DateTime } from 'vue-ydui/dist/lib.rem/datetime'

import 'vue-ydui/dist/ydui.base.css'

// yd-ui组件
Vue.component(InfiniteScroll.name, InfiniteScroll)
Vue.component(ListTheme.name, ListTheme)
Vue.component(ListItem.name, ListItem)
Vue.component(ListOther.name, ListOther)
Vue.component(Tab.name, Tab)
Vue.component(TabPanel.name, TabPanel)
Vue.component(NavBar.name, NavBar)
Vue.component(NavBarBackIcon.name, NavBarBackIcon)
Vue.component(NavBarNextIcon.name, NavBarNextIcon)
Vue.component(Search.name, Search)
Vue.component(CheckBox.name, CheckBox)
Vue.component(CheckBoxGroup.name, CheckBoxGroup)
Vue.component(Switch.name, Switch)
Vue.component(Spinner.name, Spinner)
Vue.component(CitySelect.name, CitySelect)
// Vue.prototype.$dialog = { confirm: Confirm, alert: Alert, toast: Toast, notify: Notify, loading: Loading }
Vue.component(RollNotice.name, RollNotice)
Vue.component(RollNoticeItem.name, RollNoticeItem)
Vue.component(DateTime.name, DateTime)
